package com.example.minademo.service.impl;

import com.example.minademo.dao.LoginUserDao;
import com.example.minademo.entity.LoginUser;
import com.example.minademo.service.LoginUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginUserServiceImpl implements LoginUserService {

    @Autowired
    private LoginUserDao mLoginUserDao;

    @Override
    public LoginUser getByUserId(Integer id) {
        return mLoginUserDao.getByUserId(id);
    }

    @Override
    public LoginUser getBySessionId(Long id) {
        return mLoginUserDao.getBySessionId(id);
    }
}
